package cn.dinkevin.xui.widget.barrage;

import android.graphics.Canvas;

/**
 * 弹幕
 * gitHub:https://github.com/linsea/OpenDanmaku
 * Created by linsea on 2017/1/14 0014.
 */

public interface IDanmakuItem {

    void doDraw(Canvas canvas);

    void setTextSize(int sizeInDip);

    void setTextColor(int colorResId);

    void setStartPosition(int x, int y);

    void setSpeedFactor(float factor);

    float getSpeedFactor();

    boolean isOut();

    boolean willHit(IDanmakuItem runningItem);

    void release();

    int getWidth();

    int getHeight();

    int getCurrX();

    int getCurrY();
}
